//
// Created by jmdvirus on 2019/11/18 下午4:06.
// Copyright (c) 2019 jmdvirus All rights reserved.
//
//     ******          *             *--*
//       ||            *             |
//       ||  *--*--*---*  * *-********--*
//   *  //   *  *  *   *\ / ||  |  |    |
//    **    *  *  *---* *  *   *--* *--*
//

#ifndef JKLIBS_CMSHOWQTPARABOLA_H
#define JKLIBS_CMSHOWQTPARABOLA_H

#include "QtWidgets/QLabel"
#include "QtWidgets/QWidget"
#include <QPainter>

#include "CMShowWindowBase.h"
#include "utils/cm_common.h"

class CMShowQtParabola : public CMShowWindowBase, QWidget
{
  public:
    CMShowQtParabola(QWidget *widget = NULL);

    int showParabola(int x, int y, int r);

  private:
    void paintEvent(QPaintEvent *event) CM_CPP_OVERRIDE;

    std::map<int, int> m_points;
};

#endif // JKLIBS_CMSHOWQTPARABOLA_H
